package indi.zhifa.recipe.bailan5.busy.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import indi.zhifa.recipe.bailan.framework.enums.entity.annotations.EnumDesc;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * Description:
 * @Copyright: Copyright (c) 2020-2028 北京华咨电力科技发展有限公司 All rights reserved.
 * @author: 褚智勇(hataksumo@163.com)
 * @date:  2022/4/26 8:58
 */
@EnumDesc(name = "角色",desc = "角色的枚举")
@RequiredArgsConstructor
public enum ERoles {

    CUSTOMER(0,"客户","普通客户，只有浏览权限"),
    SHOP(1,"商家","商家的枚举，可以创建商品"),
    SYS_ADM(2,"系统管理员","系统管理员，可以编辑系统规则，调用危险接口调整数据"),
    ACCOUNT_ADM(3,"账户管理员","账户管理员,可以对账户进行操作");

    @EnumValue
    @Getter
    final int code;
    @Getter
    final String name;
    @Getter
    final String description;
}
